package com.hobart.learning.lagou.edu.IPersistence.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * @author ：hobart
 * @date ：Created in 2020-11-10 14:50
 * @description：配置信息
 * @modified By：
 * @version: 1$
 */
public class Configuration {

    private DataSource dataSource;

    /**
     *  key: statementId
     *  value: 封装好的mappedStatement
     */
    Map<String, MappedStatement> mappedStatementMap = new HashMap<>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MappedStatement> getMappedStatementMap() {
        return mappedStatementMap;
    }

    public void setMappedStatementMap(Map<String, MappedStatement> mappedStatementMap) {
        this.mappedStatementMap = mappedStatementMap;
    }
}
